package com.xuecheng.swagger.controller;

import com.xuecheng.swagger.domain.Student;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 你好api
 *
 * @author 呱呱
 * @date 2022/07/07
 */
@Api(value = "hello controller",tags = "hello Api 接口文档 - tags")
public interface HelloApi {
   @ApiOperation("修改学员信息")
   @ApiImplicitParams({
           @ApiImplicitParam(name = "id",value = "学成的编号",required = true,dataType = "String",paramType = "path"),
           @ApiImplicitParam(name = "name",value = "学成的名称",required = true,dataType = "String",paramType = "query")
   })
    Student mofidyStudentBynNum(@PathVariable("id") String id,
                                @RequestParam("name") String name,
                                @RequestBody Student student);
}
